import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {Admin2Component} from './admin2.component';
import {RouterModule} from "@angular/router";

import {AuthWithForcedLoginGuard} from "../core/auth-with-forced-login.guard";


@NgModule({
  declarations: [
    Admin2Component
  ],
  imports: [
    CommonModule,
    RouterModule.forChild([
      {path: 'admin2', component: Admin2Component, canActivate: [AuthWithForcedLoginGuard]}
    ])
  ],

})
export class ExtrasModule { }
